package com.czd.support.model;

import com.czd.support.enums.AuditEnum;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Jerry.hu
 * Create: Jerry.hu (14-9-2 23:15)
 * Description:用户信息视图
 */
@Alias("vUser")
public class VUser extends Certification {

	private static final long serialVersionUID = 8126903556883571292L;
    /**
     * 申请时间
     */
    private Date applicationPeriod;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 申请代理公司名称
     */
    private String companyName;
    /**
     * 申请代理银行账户
     */
    private String bankAccount;
    /**
     * 申请代理Id
     */
    private int userCompanyId;
    
    public Date getApplicationPeriod() {
        return applicationPeriod;
    }

    public void setApplicationPeriod(Date applicationPeriod) {
        this.applicationPeriod = applicationPeriod;
    }
    
    public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public int getUserCompanyId() {
		return userCompanyId;
	}

	public void setUserCompanyId(int userCompanyId) {
		this.userCompanyId = userCompanyId;
	}

	public String getCStatusStr(){
        if(super.getcStatus() == null){
            return "未申请";
        }
		return AuditEnum.getStatusStr(super.getcStatus());
	}

}
